class NavigationData {
  final String? searchSwitch; // 可选字段
  final String? titleContentType; // 可选字段
  final String? navigationbarType; // 可选字段
  final String? styleColorCustomBackgroundColor; // 可选字段
  final String? type; // 可选字段
  final String? title; // 可选字段
  final String? uuid; // 可选字段
  final String? titleSwitch; // 可选字段
  final String? searchPosition; // 可选字段
  final String? navigationbarConfigType; // 可选字段
  final String? styleColorCustomFontColor; // 可选字段
  final String? titlePosition; // 可选字段
  final String? titleImageUrl; // 可选字段
  final String? searchBox; // 可选字段
  final int? borderStyleHeight; // 可选字段
  final String? borderStyleColor; // 可选字段
  final String? color; // 可选字段
  final String? textColor;

  NavigationData({
    this.searchSwitch,
    this.titleContentType,
    this.navigationbarType,
    this.styleColorCustomBackgroundColor,
    this.type,
    this.title,
    this.uuid,
    this.titleSwitch,
    this.searchPosition,
    this.navigationbarConfigType,
    this.styleColorCustomFontColor,
    this.titlePosition,
    this.titleImageUrl,
    this.searchBox,
    this.borderStyleHeight,
    this.borderStyleColor,
    this.color,
    this.textColor,
  });

  factory NavigationData.fromJson(Map<String, dynamic> json) {
    return NavigationData(
      searchSwitch: json['search_switch'],
      titleContentType: json['title_content_type'],
      navigationbarType: json['navigationbar_type'],
      styleColorCustomBackgroundColor: json['style_color_custom_background_color'],
      type: json['type'],
      title: json['title'],
      uuid: json['uuid'],
      titleSwitch: json['title_switch'],
      searchPosition: json['search_position'],
      navigationbarConfigType: json['navigationbar_config_type'],
      styleColorCustomFontColor: json['style_color_custom_font_color'],
      titlePosition: json['title_position'],
      titleImageUrl: json['title_image_url'],
      searchBox: json['search_box'],
      borderStyleHeight: json['border_style_height'],
      borderStyleColor: json['border_style_color'],
      color: json['color'],
      textColor: json['text_color'],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'search_switch': searchSwitch,
      'title_content_type': titleContentType,
      'navigationbar_type': navigationbarType,
      'style_color_custom_background_color': styleColorCustomBackgroundColor,
      'type': type,
      'title': title,
      'uuid': uuid,
      'title_switch': titleSwitch,
      'search_position': searchPosition,
      'navigationbar_config_type': navigationbarConfigType,
      'style_color_custom_font_color': styleColorCustomFontColor,
      'title_position': titlePosition,
      'title_image_url': titleImageUrl,
      'search_box': searchBox,
      'border_style_height': borderStyleHeight,
      'border_style_color': borderStyleColor,
      'color': color,
      'text_color': textColor,
    };
  }
}
